import request from "@/utils/request";

// 查询提现记录列表
export function listWithdrawRecord(query) {
  return request({
    url: "/admin/withdrawRecord/list",
    method: "get",
    params: query,
  });
}

// 提现审核
export function verify(params) {
  return request({
    url: "/admin/withdrawRecord/verify",
    method: "get",
    params,
  });
}

// 查询提现记录详细
export function getWithdrawRecord(id) {
  return request({
    url: "/admin/withdrawRecord/" + id,
    method: "get",
  });
}

// 新增提现记录
export function addWithdrawRecord(data) {
  return request({
    url: "/admin/withdrawRecord",
    method: "post",
    data: data,
  });
}

// 修改提现记录
export function updateWithdrawRecord(data) {
  return request({
    url: "/admin/withdrawRecord",
    method: "put",
    data: data,
  });
}

// 删除提现记录
export function delWithdrawRecord(id) {
  return request({
    url: "/admin/withdrawRecord/" + id,
    method: "delete",
  });
}

/**
 * 提现统计
 */
export function getWithdrawStatistics(params) {
  return request({
    url: "/admin/withdrawRecord/statistics",
    method: "get",
    params,
  });
}